import request from "@/utils/request";

export function getQuestionList (params) {
  return request({
    url: '/exam/question',
    method: "GET",
    params
  });
}
export function editQuestionShow (data) {
  return request({
    url: "/exam/question/show",
    method: "post",
    data
  });
}

export function editQuestionCheck (data) {
  return request({
    url: "/exam/question/check",
    method: "POST",
    data
  });
}

export function deleteQuestion (id) {
  return request({
    url: `/exam/question/:${id}`,
    method: "DELETE",
  });
}
export function addQuestionList (params) {
  return request({
    url: '/exam/question/',
    method: "POST",
    params
  });
}
export function addQuestionDetail (id) {
  return request({
    url: `/exam/question/${id}`,
    method: "GET",
  });
}
export function addQuestion (data) {
  return request({
    url: `/exam/question/`,
    method: "POST",
    data
  });
}
export function editQuestion (data) {
  return request({
    url: `/exam/question/${data.id}`,
    method: "PUT",
    data
  });
}
